/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Surgery Provider Codes</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S20264 (C-0-T19465-S20096-S20264-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getSurgeryProviderCodes()
 * @model extendedMetaData="name='SurgeryProviderCodes'"
 * @generated
 */
public enum SurgeryProviderCodes implements Enumerator {
	/**
	 * The '<em><b>208600000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_208600000X_VALUE
	 * @generated
	 * @ordered
	 */
	_208600000X(0, "_208600000X", "208600000X"),

	/**
	 * The '<em><b>2086S0120X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2086S0120X_VALUE
	 * @generated
	 * @ordered
	 */
	_2086S0120X(1, "_2086S0120X", "2086S0120X"),

	/**
	 * The '<em><b>2086S0122X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2086S0122X_VALUE
	 * @generated
	 * @ordered
	 */
	_2086S0122X(2, "_2086S0122X", "2086S0122X"),

	/**
	 * The '<em><b>2086S0105X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2086S0105X_VALUE
	 * @generated
	 * @ordered
	 */
	_2086S0105X(3, "_2086S0105X", "2086S0105X"),

	/**
	 * The '<em><b>2086S0102X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2086S0102X_VALUE
	 * @generated
	 * @ordered
	 */
	_2086S0102X(4, "_2086S0102X", "2086S0102X"),

	/**
	 * The '<em><b>2086X0206X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2086X0206X_VALUE
	 * @generated
	 * @ordered
	 */
	_2086X0206X(5, "_2086X0206X", "2086X0206X"),

	/**
	 * The '<em><b>208G00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_208G00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_208G00000X(6, "_208G00000X", "208G00000X"),

	/**
	 * The '<em><b>204F00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_204F00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_204F00000X(7, "_204F00000X", "204F00000X"),

	/**
	 * The '<em><b>2086S0127X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2086S0127X_VALUE
	 * @generated
	 * @ordered
	 */
	_2086S0127X(8, "_2086S0127X", "2086S0127X"),

	/**
	 * The '<em><b>2086S0129X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2086S0129X_VALUE
	 * @generated
	 * @ordered
	 */
	_2086S0129X(9, "_2086S0129X", "2086S0129X");

	/**
	 * The '<em><b>208600000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>208600000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_208600000X
	 * @model literal="208600000X"
	 * @generated
	 * @ordered
	 */
	public static final int _208600000X_VALUE = 0;

	/**
	 * The '<em><b>2086S0120X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2086S0120X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2086S0120X
	 * @model literal="2086S0120X"
	 * @generated
	 * @ordered
	 */
	public static final int _2086S0120X_VALUE = 1;

	/**
	 * The '<em><b>2086S0122X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2086S0122X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2086S0122X
	 * @model literal="2086S0122X"
	 * @generated
	 * @ordered
	 */
	public static final int _2086S0122X_VALUE = 2;

	/**
	 * The '<em><b>2086S0105X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2086S0105X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2086S0105X
	 * @model literal="2086S0105X"
	 * @generated
	 * @ordered
	 */
	public static final int _2086S0105X_VALUE = 3;

	/**
	 * The '<em><b>2086S0102X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2086S0102X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2086S0102X
	 * @model literal="2086S0102X"
	 * @generated
	 * @ordered
	 */
	public static final int _2086S0102X_VALUE = 4;

	/**
	 * The '<em><b>2086X0206X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2086X0206X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2086X0206X
	 * @model literal="2086X0206X"
	 * @generated
	 * @ordered
	 */
	public static final int _2086X0206X_VALUE = 5;

	/**
	 * The '<em><b>208G00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>208G00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_208G00000X
	 * @model literal="208G00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _208G00000X_VALUE = 6;

	/**
	 * The '<em><b>204F00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>204F00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_204F00000X
	 * @model literal="204F00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _204F00000X_VALUE = 7;

	/**
	 * The '<em><b>2086S0127X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2086S0127X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2086S0127X
	 * @model literal="2086S0127X"
	 * @generated
	 * @ordered
	 */
	public static final int _2086S0127X_VALUE = 8;

	/**
	 * The '<em><b>2086S0129X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2086S0129X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2086S0129X
	 * @model literal="2086S0129X"
	 * @generated
	 * @ordered
	 */
	public static final int _2086S0129X_VALUE = 9;

	/**
	 * An array of all the '<em><b>Surgery Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final SurgeryProviderCodes[] VALUES_ARRAY =
		new SurgeryProviderCodes[] {
			_208600000X,
			_2086S0120X,
			_2086S0122X,
			_2086S0105X,
			_2086S0102X,
			_2086X0206X,
			_208G00000X,
			_204F00000X,
			_2086S0127X,
			_2086S0129X,
		};

	/**
	 * A public read-only list of all the '<em><b>Surgery Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<SurgeryProviderCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Surgery Provider Codes</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static SurgeryProviderCodes get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			SurgeryProviderCodes result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Surgery Provider Codes</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static SurgeryProviderCodes getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			SurgeryProviderCodes result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Surgery Provider Codes</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static SurgeryProviderCodes get(int value) {
		switch (value) {
			case _208600000X_VALUE: return _208600000X;
			case _2086S0120X_VALUE: return _2086S0120X;
			case _2086S0122X_VALUE: return _2086S0122X;
			case _2086S0105X_VALUE: return _2086S0105X;
			case _2086S0102X_VALUE: return _2086S0102X;
			case _2086X0206X_VALUE: return _2086X0206X;
			case _208G00000X_VALUE: return _208G00000X;
			case _204F00000X_VALUE: return _204F00000X;
			case _2086S0127X_VALUE: return _2086S0127X;
			case _2086S0129X_VALUE: return _2086S0129X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private SurgeryProviderCodes(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //SurgeryProviderCodes
